﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fcdbas.Platform.Interface
{
    public interface IView
    {
        DialogResult ShowMessage(string msgCode);
        /// <summary>
        /// 显示对话框。
        /// </summary>
        /// <param name="msgCode">消息代码</param>
        /// <param name="msgAdd">消息参数，多个参数之间用","分开</param>
        /// <returns>选择结果</returns>
        DialogResult ShowMessage(string msgCode, string msgAdd);

        DialogResult ShowMessage(string msgCode, string msgAdd, MessageBoxButtons btnType);
        DialogResult ShowMessage(string msgCode, string msgAdd, MessageBoxButtons btnType, MessageBoxIcon iconType);
        DialogResult ShowMessage(string msgCode, string msgAdd, MessageBoxButtons btnType, MessageBoxIcon iconType, MessageBoxDefaultButton defaultType);
        DialogResult ShowMessage(IWin32Window owner, string msgCode, string msgAdd, MessageBoxButtons buttonsType, MessageBoxIcon iconType, MessageBoxDefaultButton defaultButton);
    }
}
